package com.ruoyi.cinema.BO;

import com.ruoyi.cinema.domain.Customer;
import com.ruoyi.order.domain.Order;

import java.io.Serializable;
import java.util.Date;

public class GoodsBuyedMsgBo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String openId;
    private Long customerId;
    private String phone;
    private String cinemaLinkId;
    private Date updateTime;
    private Date fulfillTime;
    private String fulfillCode;

    private Long orderId;
    private String yzOrderId;

    public GoodsBuyedMsgBo() {

    }


    public GoodsBuyedMsgBo(Order order, Customer customer, String cinemaLinkId) {
        this.openId = customer.getOpenId();
        this.customerId = customer.getId();
        this.phone  = customer.getPhone();
        this.cinemaLinkId = cinemaLinkId;
        this.updateTime = order.getUpdateTime();
        this.fulfillTime = order.getOrderFulfillInfo().getFulfillTime();
        this.fulfillCode = order.getOrderFulfillInfo().getFulfillCode();
        this.orderId = order.getId();
        this.yzOrderId = order.getYzOrderId();
    }
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCinemaLinkId() {
        return cinemaLinkId;
    }

    public void setCinemaLinkId(String cinemaLinkId) {
        this.cinemaLinkId = cinemaLinkId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getFulfillTime() {
        return fulfillTime;
    }

    public void setFulfillTime(Date fulfillTime) {
        this.fulfillTime = fulfillTime;
    }

    public String getFulfillCode() {
        return fulfillCode;
    }

    public void setFulfillCode(String fulfillCode) {
        this.fulfillCode = fulfillCode;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getYzOrderId() {
        return yzOrderId;
    }

    public void setYzOrderId(String yzOrderId) {
        this.yzOrderId = yzOrderId;
    }
}
